<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()
const goBack = () => {
  router.back()
}
</script>

<template>
  <div class="project-info">
    <el-page-header
      class="mb-10"
      @back="goBack"
      title="返回"
      content="项目基本信息"
    />
    <div class="info-container">
      <div class="project-img">
        <img
          src="https://p5.img.cctvpic.com/photoworkspace/contentimg/2023/03/30/2023033011303020756.jpg"
          alt=""
        />
      </div>
      <div class="project-name">这是测试项目的名称</div>
      <div class="project-desc">
        啊手动阀航空器为士大夫艰苦啊手动阀和趣味欧珀斯大林JFK拉萨的权威日哦篇啊士大夫看见噶上的分歧发士大夫咋第三方
        啊手动阀航空器为士大夫艰苦啊手动阀和趣味欧珀斯大林JFK拉萨的权威日哦篇啊士大夫看见噶上的分歧发士大夫咋第三方
        啊手动阀航空器为士大夫艰苦啊手动阀和趣味欧珀斯大林JFK拉萨的权威日哦篇啊士大夫看见噶上的分歧发士大夫咋第三方
        啊手动阀航空器为士大夫艰苦啊手动阀和趣味欧珀斯大林JFK拉萨的权威日哦篇啊士大夫看见噶上的分歧发士大夫咋第三方
        啊手动阀航空器为士大夫艰苦啊手动阀和趣味欧珀斯大林JFK拉萨的权威日哦篇啊士大夫看见噶上的分歧发士大夫咋第三方
      </div>
      <div class="project-message">
        <div class="project-message-item">
          <span class="label">立项时间：</span>
          <span class="content">2025-02-13 12:05:56</span>
        </div>
        <div class="project-message-item">
          <span class="label">所属部门：</span>
          <span class="content">数值交通组</span>
        </div>
        <div class="project-message-item">
          <span class="label">项目经理：</span>
          <span class="content">2025-02-13 12:05:56</span>
        </div>
        <div class="project-message-item">
          <span class="label">产品经理：</span>
          <span class="content">2025-02-13 12:05:56</span>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.mb-10 {
  margin-bottom: 10px;
}

.info-container {
  height: calc(100% - 34px);
  overflow-y: auto;
}

.project-img {
  width: 100%;
  height: 380px;

  img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
  }
}

.project-name {
  margin: 10px 0;
  font-size: 22px;
}

.project-desc {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.project-message {
  width: 100%;
}

.project-message-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;

  .label {
    width: max-content;
  }

  .content {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
</style>
